package cn.ycxy.lbl.pojo.posts.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@ApiModel(value="帖子新增DTO")
@Data
public class DiscussPostsAddDTO {

    @ApiModelProperty(value = "内容")
    @NotNull(message = "帖子内容不能为空!")
    private String content;

    @ApiModelProperty(value = "图片集合")
    private String imgUrls;

    @ApiModelProperty(value = "0-失物招领; 1-拼车服务; 2-校园风景; 3-二手交易")
    @NotNull(message = "发帖类型不能为空!")
    private Integer type;

    @ApiModelProperty(value = "商品原总价")
    private BigDecimal amountOfOriginalPrice;

    @ApiModelProperty(value = "商品现总价")
    private BigDecimal amountOfCurrentPrice;

    @ApiModelProperty(value = "二手交易物品分类id")
    private Integer classifyId;

}
